package com.study.design.pattern.pattern.behavioral.templatemethod;

/**
 * @Author: gongsl
 * @Date: 2025-03-20 23:06
 */
public class DataExportTest {
    public static void main(String[] args) {
        System.out.println("执行 Excel 导出:");
        DataExporter excelExporter = new ExcelExporter();
        excelExporter.export();

        System.out.println("\n执行 CSV 导出:");
        DataExporter csvExporter = new CsvExporter();
        csvExporter.export();

        System.out.println("\n执行 PDF 导出:");
        DataExporter pdfExporter = new PdfExporter();
        pdfExporter.export();
    }
}
